package cn.liontalk.concurrent.shuati;

import java.util.Scanner;



public class ZuiXiaoGongBeiShu{


    static Scanner sc = new Scanner(System.in);

    static int a, b;
    public static void main(String[] args) {
        input();//输入a和b
        f();//计算输出
    }


    public static void input() {
        a = sc.nextInt();
        b = sc.nextInt();
    }


    public static void f() {
        int small = a < b ? a : b;//a和b的最小数
        for (int i = small; i >= 1; i--) {
            if (a % i == 0 && b % i == 0) {
                // System.out.println("最大公约数：" + i);
                System.out.println(((a*b)/i));
                // System.out.println("最小公倍数：" + (i * (a / i) * (b / i)));
                break;
            }
        }
    }

}
